package com.push_label.server;

import com.push_label.bean.channel.ChannelInfo;
import com.push_label.mapper.ChannelMapper;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

@Service
public class ChannelServiceImpl implements ChannelService {


    @Resource
    public ChannelMapper channelMapper;

    @Override
    @Cacheable(cacheNames = "channel",key = "'all'" ,unless = "#result == null")
    public List<ChannelInfo> getAddChannel() {
        return channelMapper.getAddChannel();
    }
}
